package com.kavin.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public abstract class BaseEntity implements Serializable {

	private static final long serialVersionUID = 2054813493011812469L;

	@TableId(type = IdType.AUTO)
	private Long id;
	private Date createDate = new Date();
	private Date updateDate = new Date();
	/**
	 * create_by
	 */
	private String createBy;

	/**
	 * update_by
	 */
	private String updateBy;

	/**
	 * 备注
	 */
	private String remarks;

	/**
	 * status
	 */
	private String status;

	public BaseEntity(String status, Date createDate, String createBy, Date updateDate, String updateBy, String remarks,Long id) {
	}
}
